Socket
Socket
Sign inDemoInstall

estraverse-fb

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

estraverse-fb

Drop-in for estraverse that enables traversal over React's JSX nodes.


Version published
Weekly downloads
45K
decreased by-4.4%
Maintainers
1
Weekly downloads
 
Created
Source

estraverse-fb

Build Status

Drop-in for estraverse that enables traversal over React's JSX and Flow nodes using monkey-patching technique.

You can use estraverse-fb in two possible ways:

  • by default, you just require it and it injects needed keys into your installed version of estraverse (it's installed automatically if you don't have it yet):

    var estraverse = require('estraverse-fb');
    /* same as:
        require('estraverse-fb');
        var estraverse = require('estraverse');
    */
    
    estraverse.traverse(ast, {
        enter: ...,
        leave: ...
    });
    
  • alternatively, you can use it manually for selected traversals:

    var jsxKeys = require('estraverse-fb/keys');
    
    estraverse.traverse(ast, {
        enter: ...,
        leave: ...,
        keys: jsxKeys
    })
    

Check out [estraverse page](https://github.com/Constellation/estraverse) for detailed usage.

Keywords

FAQs

Package last updated on 04 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc